Package com.cisco.pt.ipc.sim.impl
Class SimFileImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.SimFileImpl
- Direct Known Subclasses:
DirectoryImpl
Information provided by the PKI file:
\class SimFile
\brief SimFile holds and manipulates files on file systems.
\example network().getDevice("Router0").getProcess("FileManager").getFileSystem("flash:").getFileAt(0)
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionSimFileImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionInformation provided by the PKI file:getContent(boolean bCheckPermission) Information provided by the PKI file:getName()Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intgetSize()Information provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:voidsetTextContent(String content, boolean bCheckPermission) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
SimFileImpl
public SimFileImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getName
Information provided by the PKI file:
\brief Returns the filename of the file. \return string, the filename of the file. -
getPermission
Information provided by the PKI file:
\brief Returns the permissions of the file. \return FilePermission, the permissions of the file. Permissions: eExecute = 1, eWrite = 2, eRead = 4- Specified by:
getPermissionin interfaceSimFile- Returns:
- FilePermission Returns a FilePermission
-
isExecutable
public boolean isExecutable()Information provided by the PKI file:
\brief Returns true if the file is executable, otherwise false. \return bool, true if the file is executable, otherwise false.- Specified by:
isExecutablein interfaceSimFile- Returns:
- boolean Returns a boolean
-
isWritable
public boolean isWritable()Information provided by the PKI file:
\brief Returns true if the file is writable, otherwise false. \return bool, true if the file is writable, otherwise false.- Specified by:
isWritablein interfaceSimFile- Returns:
- boolean Returns a boolean
-
isReadable
public boolean isReadable()Information provided by the PKI file:
\brief Returns true if the file is readable, otherwise false. \return bool, true if the file is readable, otherwise false.- Specified by:
isReadablein interfaceSimFile- Returns:
- boolean Returns a boolean
-
isDirectory
public boolean isDirectory()Information provided by the PKI file:
\brief Returns true if the file is a directory, otherwise false. \return bool, true if the file is a directory, otherwise false.- Specified by:
isDirectoryin interfaceSimFile- Returns:
- boolean Returns a boolean
-
getSize
public int getSize()Information provided by the PKI file:
\brief Returns the filesize of the file. \return int, the filesize of the file. -
getParent
Information provided by the PKI file:
\brief Returns the parent directory. \return Directory, the parent directory. -
getAbsPath
Information provided by the PKI file:
\brief Returns absolute path of the SimFile object. \return string, absolute path of the SimFile object.- Specified by:
getAbsPathin interfaceSimFile- Returns:
- String Returns a String
-
setTextContent
Information provided by the PKI file:
\brief set the content of the SimFile object. \param content, the content string to set to the SimFile. \param bCheckPermission, true if check the permission of the file, otherwise false.- Specified by:
setTextContentin interfaceSimFile- Parameters:
content- Takes in a parameter of contentbCheckPermission- Takes in a parameter of bCheckPermission
-
getContent
Information provided by the PKI file:
\brief Returns the file content of the SimFile. \param bCheckPermission, true if check the permission of the file, otherwise false. \return FileContent, the file content of the SimFile.- Specified by:
getContentin interfaceSimFile- Parameters:
bCheckPermission- Takes in a parameter of bCheckPermission- Returns:
- FileContent Returns a FileContent
-